<?php
include '../config/config.php';
include '../lib/promo.php';

$config=new config();
$config->connect();

if (isset ($_GET["id"])){
	$Promo_Dao=new Promo_Dao();
	$promo = new Promo();
	$promo->id_promo = $_GET["id"];
	$Promo_Dao->hapus_promo($promo);
	$config->close();
	header("Location:daftar_promo.php");

}